/**
 * @param {View} shell
 * @param {UrlObject} url
 * @constructor
 * @extends {BaseMediator}
 */
function ShareMediator(shell, url)
{
	"use strict";

	/** @type {ShareMediator} */
	var _this = this;

	this.init(shell, '#share');

	function layout()
	{
		$('#setLink').val(url.make(Session.set));
		$('#photoLink').val(url.make(Session.set, Session.photo));
	}

	/**
	 * Called when toolbar button clicked
	 * @return {ShareMediator|BaseMediator}
	 */
	this.show = function()
	{
		if (_this.enabled && Session.set != null) { layout(); }
		return _this.base.show.call(_this);
	};
}
ShareMediator.inherit(BaseMediator);